import request from '@/utils/request'

// 获取用户列表
export const getUserList = (data) => {
  return request({
    url: '/userservice/user/list',
    method: 'GET',
    data
  })
}
// 修改状态
export const postUserUpdateStatus = (data) => {
  return request({
    url: '/userservice/user/updateStatus',
    method: 'POST',
    data
  })
}
// 重置密码
export function onResetPwd(data) {
  return request({
    url: '/userservice/user/setPwd',
    method: 'POST',
    data
  })
}

// 新建用户
export const createUser = (data) => {
  return request({
    url: '/userservice/user/addOrUpdate',
    method: 'POST',
    data
  })
}
